From: Cosimo Cecchi Date: Fri, 1 Mar 2013 02:16:54 +0000 (-0500) Subject: messageTray: emit a signal when we're showing or hiding X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4608 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8fb2263471df1e5542e2388d31e55e732ae80bf8;p=gnome-shell.git messageTray: emit a signal when we're showing or hiding This will be useful in a future commit. https://bugzilla.gnome.org/show_bug.cgi?id=687787 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 3699ec273..14c55db63 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -2348,6 +2348,7 @@ const MessageTray = new Lang.Class({ return false; } + this.emit('showing'); this._tween(this.actor, '_trayState', State.SHOWN, { y: -this.actor.height, time: ANIMATION_TIME, @@ -2398,6 +2399,7 @@ const MessageTray = new Lang.Class({ // is distracting, so hide it immediately in case it was visible. this._summaryBoxPointer.actor.hide(); + this.emit('hiding'); this._tween(this.actor, '_trayState', State.HIDDEN, { y: 0, time: ANIMATION_TIME,